package homework12月15号.homework2;

/**
 * Created by dingw on 2019/12/12.
 */
//商品详情
public class ProductDetails {
    //商品详情id
    private String id;
    //机身颜色
    private String color;
    //存储容量
    private String memory;
    //库存数量
    private int num;
    //商品价格
    private double price;
    //商品id
    private String productId;
    private Product product = new Product();

    public ProductDetails() {
    }

    public ProductDetails(String id, String color, String memory, int num, double price, String productId) {
        this.id = id;
        this.color = color;
        this.memory = memory;
        this.num = num;
        this.price = price;
        this.productId = productId;
    }

    public ProductDetails(String id, String color, String memory, int num, double price, String productId, Product product) {
        this.id = id;
        this.color = color;
        this.memory = memory;
        this.num = num;
        this.price = price;
        this.productId = productId;
        this.product = product;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getMemory() {
        return memory;
    }

    public void setMemory(String memory) {
        this.memory = memory;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }
}
